package com.springmvc.demo.model;


public class ChronicDiseasePolicy {
	/*慢性病政策
	 * Chronic Disease 慢性病
	 * Policy 政策
	 */
	private String year;
	private float topLine;
	private float  ratio; //报销比例


	public String getYear() {
		return year;
	}
	public void setYear(String year) {
		this.year = year;
	}
	public float getTopLine() {
		return topLine;
	}
	public void setTopLine(float topLine) {
		this.topLine = topLine;
	}

	

	public float getRatio() {
		return ratio;
	}
	public void setRatio(float ratio) {
		this.ratio = ratio;
	}
	
	/*
	public float checkTopLine(String year) throws SQLException {
		JdbcUtils jdbcUtils=new JdbcUtils();
		Connection conn=jdbcUtils.getConn();
		PreparedStatement pstmt = null;
		ResultSet rs=null;
		
		try {
			String sql="SELECT * FROM chronic_disease_policy WHERE year=?";
			pstmt=conn.prepareStatement(sql);
			pstmt.setString(1, year);
			
			rs=pstmt.executeQuery();
			if(rs.next()) {
				rs.getFloat("topLine");
			}
		}catch(SQLException e) {
			e.printStackTrace();
		}finally {
			rs.close();
			conn.close();
			
		}
		return 2018;
	}
	
	
	*/
}
